<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"> 
	<title>丹露-APP补丁管理平台</title>
	<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<link rel="stylesheet" href="css/manage.css">
	<script src="layer/layer.js"></script>
</head>
<body>
<div class="container" style="width:100%;height:auto">
	<div class="row" style="background:url(title.png);background-size: cover;">
		<div class="col-lg-12">
			<h3 class="text-left" style="color:white">
				丹露-APP补丁管理平台
			</h3>
		</div>
	</div>
	<div class="row">
		<div class="col-lg-12">
			<div class="panel panel-primary" style="margin-top:5px;border:1px solid #CDAF95">
				<div class="panel-heading" style="background-color:#CDAF95;border:1px solid #CDAF95">
					<h3 class="panel-title" style="font-size:23px"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;版本详情</h3>
				</div>
				<div style="margin-top:15px;">
					<!--<label style="margin-left:10px">版本号：</label>
						<select class="sel" id="selVersion">
						</select> -->	
					<button class="btn btn-info" style="float:right;margin-bottom:10px;margin-left:10px;margin-right:5px;background-color:#999999;border:1px solid #999999;outline:none" onclick="back()"><span class="glyphicon glyphicon-backward"></span>返回上一页</button>
					<button class="btn btn-info" style="float:right;background-color:#CD8162;border:1px solid #CDAF95;outline:none" data-toggle="modal" data-target="#myPatchModal" ><span class="glyphicon glyphicon-plus"></span>上传补丁</button>
					
				</div>
				
				<table class="table table-striped table-hover" style="margin-top:5px">
					<thead>
						<tr bgcolor="#CDAF95">
							<th style="overflow:hidden;width:16%">补丁名称</th>
							<th style="overflow:hidden;width:16%">补丁大小</th>
							<th style="overflow:hidden;width:16%">补丁版本</th>
							<th style="overflow:hidden;width:16%">下载量</th>
							<th style="overflow:hidden;width:16%">合成成功量</th>
							<th style="overflow:hidden;width:20%">操作</th>
						</tr>
					</thead>
					<tbody id="patchTable">
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>

<!--模态框-->
<div class="modal fade" id="myPatchModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					上传补丁（<small style="color:red">版本对应新补丁生效后，旧补丁机及其对应过滤机型将一起失效</small>）
				</h4>
			</div>
			<div class="modal-body">
				<table style="width:70%;margin-left:70px;height:250px">
					<tr>
						<td><label style="color:red">*</label>补丁名称:</td>
						<td><input type="text" class="form-control" placeholder="请输入补丁名称" id="patchName"></td>
					</tr>
					<tr>
						<td><label style="color:red">*</label>上传补丁文件：</td>
						<td><form id="fileForm" enctype='multipart/form-data'><input type="file" id="patchFile" name="patch"><form></td>
					</tr>
					<tr>
						<td><label style="color:red">*</label>补丁描述:</td>
						<td><textarea style="height:100px;width:100%;resize:vertical;" class="form-control" placeholder="输入20字以内补丁描述" id="patchDescription"></textarea></td>
					</tr>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal" style="background-color:#999999;border:1px solid #999999;outline:none">关闭
				</button>
				<button type="button" class="btn btn-primary" style="background-color:#CD8162;border:1px solid #CDAF95;outline:none" onclick="creatPatch()" id="creatPatchBtn">
					创建
				</button>
			</div>
		</div>
	</div>
</div>
<!--查看详情模态框-->
<div class="modal fade" id="myPatchDetailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					补丁详情
				</h4>
			</div>
			<div class="modal-body">
				<table style="width:70%;margin-left:70px;height:380px">
					<tr>
						<td><label style="color:red">*</label>补丁名称:</td>
						<td><input type="text" class="form-control" placeholder="请输入补丁名称" id="patchDetailName"></td>
					</tr>
					<tr>
						<td><label style="color:red">*</label>补丁大小:</td>
						<td><input type="text" class="form-control" placeholder="请输入补丁大小" id="patchDetailSize"></td>
					</tr>
					<tr>
						<td><label style="color:red">*</label>补丁版本:</td>
						<td><input type="text" class="form-control" placeholder="请输入补丁版本" id="patchDetailCode"></td>
					</tr>
					<tr>
						<td><label style="color:red">*</label>补丁路径:</td>
						<td><input type="text" class="form-control" placeholder="请输入补丁路径" id="patchDetailPath"></td>
					</tr>
					<tr>
						<td><label style="color:red">*</label>补丁合成成功量:</td>
						<td><input type="text" class="form-control" placeholder="请输入补丁合成成功量" id="patchDetailCompose"></td>
					</tr>
					<tr>
						<td><label style="color:red">*</label>补丁下载量:</td>
						<td><input type="text" class="form-control" placeholder="请输入补丁下载量" id="patchDetailDownload"></td>
					</tr>
					<tr>
						<td><label style="color:red">*</label>补丁描述:</td>
						<td><textarea style="height:100px;width:100%;resize:vertical;" class="form-control" placeholder="输入20字以内补丁描述" id="patchDetailDescription"></textarea></td>
					</tr>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal" style="background-color:#999999;border:1px solid #999999;outline:none">关闭
				</button>
				<button type="button" class="btn btn-primary" style="background-color:#CD8162;border:1px solid #CDAF95;outline:none" onclick="displayPatch()" id="displayBtn">
					编辑
				</button>
				<button type="button" class="btn btn-primary" style="background-color:#CD8162;border:1px solid #CDAF95;outline:none;display:none" onclick="updatePatch()" id="updateBtn">
					保存
				</button>
			</div>
		</div>
	</div>
</div>

<script src="js/managepatch.js"></script>
<script src="js/ajaxfileupload.js"></script>
<script src="js/spark-md5.js"></script>
</body>